package cn.ygh.bbo.system.web.controller;

import cn.ygh.bbo.common.entity.server.Server;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 服务器状态监控
 * @author ygh
 */
@Controller
@RequestMapping("/restpage/server")
public class ServerController {
    /**
     * 服务器详情
     * @return
     */
    @RequiresPermissions("system:server:show")
    @ResponseBody
    @RequestMapping(value = "/get",method = RequestMethod.GET)
    public Server grid() throws Exception {
        Server server=new Server();
        server.copyTo();
        return server;
    }
}
